package com.alinesno.cloud.base.boot.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Proxy;

import com.alibaba.fastjson.annotation.JSONField;
import com.alinesno.cloud.common.facade.orm.entity.BaseEntity;


/**
 * <p>
 * 用户登陆记录表
 * </p>
 *
 * @author WeiXiaoJin
 * @since 2020-01-11 19:50:27
 */
@Proxy(lazy = false)
@Entity
@Table(name="manager_login_record")
public class ManagerLoginRecordEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 登陆名
     */
	@Column(name="login_name")
	private String loginName;
    /**
     * 登陆时间
     */
	@Column(name="login_time")
	@JSONField(format="yyyy-MM-dd HH:mm:ss")
	private Date loginTime;
    /**
     * 登陆IP
     */
	@Column(name="login_ip")
	private String loginIp;
    /**
     * 登陆状态(1成功|0失败)
     */
	@Column(name="login_status")
	private String loginStatus;
    /**
     * 错误密码
     */
	@Column(name="error_password")
	private String errorPassword;
    /**
     * 手机验证码
     */
	@Column(name="phone_code")
	private String phoneCode;
    /**
     * 邮箱验证码
     */
	@Column(name="email_code")
	private String emailCode;
    /**
     * 登陆来源
     */
	@Column(name="login_src")
	private String loginSrc;
    /**
     * 退出时间
     */
	@Column(name="sign_out_time")
	@JSONField(format="yyyy-MM-dd HH:mm:ss")
	private Date signOutTime;
    /**
     * 浏览器信息
     */
	@Column(name="login_browser")
	private String loginBrowser;
    /**
     * 登陆备注
     */
	@Column(name="login_remark")
	private String loginRemark;


	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public Date getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}

	public String getLoginIp() {
		return loginIp;
	}

	public void setLoginIp(String loginIp) {
		this.loginIp = loginIp;
	}

	public String getLoginStatus() {
		return loginStatus;
	}

	public void setLoginStatus(String loginStatus) {
		this.loginStatus = loginStatus;
	}

	public String getErrorPassword() {
		return errorPassword;
	}

	public void setErrorPassword(String errorPassword) {
		this.errorPassword = errorPassword;
	}

	public String getPhoneCode() {
		return phoneCode;
	}

	public void setPhoneCode(String phoneCode) {
		this.phoneCode = phoneCode;
	}

	public String getEmailCode() {
		return emailCode;
	}

	public void setEmailCode(String emailCode) {
		this.emailCode = emailCode;
	}

	public String getLoginSrc() {
		return loginSrc;
	}

	public void setLoginSrc(String loginSrc) {
		this.loginSrc = loginSrc;
	}

	public Date getSignOutTime() {
		return signOutTime;
	}

	public void setSignOutTime(Date signOutTime) {
		this.signOutTime = signOutTime;
	}

	public String getLoginBrowser() {
		return loginBrowser;
	}

	public void setLoginBrowser(String loginBrowser) {
		this.loginBrowser = loginBrowser;
	}

	public String getLoginRemark() {
		return loginRemark;
	}

	public void setLoginRemark(String loginRemark) {
		this.loginRemark = loginRemark;
	}


	@Override
	public String toString() {
		return "ManagerLoginRecordEntity{" +
			"loginName=" + loginName +
			", loginTime=" + loginTime +
			", loginIp=" + loginIp +
			", loginStatus=" + loginStatus +
			", errorPassword=" + errorPassword +
			", phoneCode=" + phoneCode +
			", emailCode=" + emailCode +
			", loginSrc=" + loginSrc +
			", signOutTime=" + signOutTime +
			", loginBrowser=" + loginBrowser +
			", loginRemark=" + loginRemark +
			"}";
	}
}
